<template>
  <div class="recommend">
    <div v-for="item in recommend" class="recommend-item">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <p>{{item.title}}</p>
      </a>
    </div>
  </div>
</template>
<script>
export default {
  name: "HomeRecommend",
  props: {
    recommend: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>
<style scoped>
  .recommend {
    display: flex;
    padding: 10px 0 20px;
    width: 100%;
    border-bottom:8px solid #eee;
  }
  .recommend-item {
    flex: 1;
    font-size: 12px;
    text-align: center;
  }
  .recommend-item img {
    width: 90%;
  }
</style>